[paket]
tanim   = NVIDIA Ayarlar
paketci = Cihan_Alkan
grup    = sistem
url     = https://github.com/NVIDIA

[gerek]
derleme = 
calisma = 


[kaynak]
git  = https://github.com/NVIDIA/nvidia-settings
2 = https://github.com/archlinux/svntogit-packages/raw/packages/nvidia-settings/trunk/libxnvctrl_so.patch

[sha256]
#1       = 38a3e3968f00cc58fe1d9448e972cfac7d1efa30c48699f09032f264101a55ac

[derle]
betik = cd $SRC
betik  = export PREFIX=/usr
betik = export NV_USE_BUNDLED_LIBJANSSON=0
betik = export OUTPUTDIR=out
betik = cd ${isim}
#betik = patch -p0 < "/sources/libxnvctrl_so.patch"
betik = make
betik = make -C src/libXNVCtrl
betik = make DESTDIR="${PKG}" install
betik = install -D -m644 doc/nvidia-settings.desktop "${PKG}/usr/share/applications/nvidia-settings.desktop"
betik = install -D -m644 doc/nvidia-settings.png "${PKG}/usr/share/pixmaps/nvidia-settings.png"
betik = sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -e 's/__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__/Settings;HardwareSettings;/' -i "${PKG}/usr/share/applications/nvidia-settings.desktop"
#rm "$PKG/usr/lib/libnvidia-gtk2.so.$surum"
                  


[pakur]
betik = cd $SRC/${isim}
betik = cd src/libXNVCtrl
betik = install -Dm 644 ./*.h -t "${PKG}/usr/include/NVCtrl"
betik = install -d "${PKG}/usr/lib"
betik = cp -Pr out/libXNVCtrl.* -t "${PKG}/usr/lib"
